<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page isELIgnored="false" %><%--启动EL表达式解析--%>
<%
    request.setCharacterEncoding("UTF-8");
    String basePath = request.getScheme()+"://"+request.getServerName()+":"
            +request.getServerPort()+request.getContextPath()+"/";
    String login_url = basePath + "xylogin";
    String randomCode = basePath +"randomCode";
%>
<html>
<head>
    <title>登陆</title>
    <base href="<%=basePath%>">
</head>
<body>
<h3>用户登陆请输入用户名与密码</h3>

<form action="<%=login_url%>" method="post">
    用户名:
    <input name="mid" type="text" placeholder="请输入字符串用户名"><br>
    密码:
    <input name="pwd" type="password" placeholder="请输入密码"><br>
    验证码：<input type="text" maxlength="4" size="4" name="code">
                <a><img src="<%=randomCode%>"></a></br>
            </input>
    <input type="checkbox" id="remember" name="remember" value="true" checked="true"/>下次免登录</br>
    <input type="submit" value="登录">
    <input type="reset" value="重置">
</form>
</body>
</html>